# -*- coding: latin-1 -*-
import pygtk
pygtk.require('2.0')
import gtk

class popup:
    def destroy(self, widget):
       gtk.main_quit()

    def __init__(self):
        window = gtk.Dialog()
        window.connect("destroy", self.destroy)
        window.set_title("CEF - SHOP - Dialog")
        window.set_border_width(0)
        window.set_size_request(300, 100)

        button_ok = gtk.Button("OK")
        window.action_area.pack_start(button_ok, True, True, 0)
       
        label = gtk.Label("Registro gravado com sucesso!")
        window.vbox.pack_start(label, True, True, 0)

        label.show()
        button_ok.grab_default()
        button_ok.show()
        window.show()

def main():
    gtk.main()
    return 0

if __name__ == "__main__":
    popup()
    main()

